<template>
	<view class="warp">
		<view class="checkbox fillet">
			<view class="check_item">
				<view class="tit">姓名</view>
				<view class="check_content">
					<input class="lit" type="text" placeholder="请输入您的姓名" />
				</view>
			</view>
			<view class="check_item" @click="sexShow = true">
				<view class="tit">性别</view>
				<view class="check_content">
					<view class="lit">{{sexText}}</view>
					<uni-icons size="16" color="#fff" type="right"></uni-icons>
				</view>
			</view>
			<view class="check_item">
				<view class="tit">联系电话</view>
				<view class="check_content">
					<input class="lit" type="tel" placeholder="请输入您的联系电话" />
				</view>
			</view>
			<view class="check_item">
				<view class="tit">身份证号(选填)</view>
				<view class="check_content">
					<input class="lit" type="text" placeholder="请输入您的身份证号" />
				</view>
			</view>
			<view class="check_item">
				<view class="tit">衣服尺码(选填)</view>
				<view class="check_content">
					<input class="lit" type="text" placeholder="请输入您的衣服尺码" />
				</view>
			</view>
			<view class="check_item">
				<view class="tit">差点(选填)</view>
				<view class="check_content">
					<input class="lit" type="text" placeholder="请输入差点" />
				</view>
			</view>
		</view>
		<u-action-sheet
			:actions="sexColumns"
			:show="sexShow"
			:safeAreaInsetBottom="true"
			:closeOnClickAction="true"
			:closeOnClickOverlay="true"
			@select="sexClick"
		></u-action-sheet>
		<view class="btn_box">
			<view class="go_btn">提交</view>
		</view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			sexShow: false,
			sexColumns: [
				{ name: '男', value: 1 },
				{ name: '女', value: 0 },
			],
			sexText:'男'
		};
	},
	methods: {
		sexClick(e) {
			this.sexText = e.name
			this.sexShow = false
			console.log(e);
		},
	},
};
</script>

<style lang="scss">
.gary {
	color: #979797 !important;
}
.fillet {
	border-radius: 16rpx;
	background-color: #202020;
	box-sizing: border-box;
}
.warp {
	padding: 26rpx;
	.textbox {
		padding: 26rpx 32rpx;
		input {
			font-weight: bold;
			padding-bottom: 20rpx;
			border-bottom: 2rpx solid #404040;
		}
		textarea {
			width: 100%;
			margin-top: 20rpx;
			font-size: 26rpx;
			line-height: 1.6;
		}
	}
	.checkbox {
		margin-top: 30rpx;
		padding: 0 32rpx;
		.check_item {
			border-bottom: 2rpx solid #404040;
			display: flex;
			align-items: center;
			justify-content: space-between;
			view {
				color: #fff;
				font-size: 28rpx;
			}
			.check_content {
				display: flex;
				align-items: center;
				justify-content: flex-end;
				padding: 26rpx 0;
				width: 70%;
				input {
					font-size: 26rpx !important;
					width: 100%;
					text-align: right;
				}
				.input-placeholder {
					font-size: 26rpx !important;
				}
				.lit {
					width: 100%;
					text-align: right;
					overflow: hidden;
					white-space: nowrap;
					text-overflow: ellipsis;
				}
			}
		}
		.check_item:last-child {
			border: 0;
		}
	}
	.btn_box {
		// background-color: #262626;
		position: fixed;
		width: 100%;
		box-sizing: border-box;
		bottom: 0;
		left: 0;
		padding: 20rpx 26rpx;
		padding-bottom: 40rpx;
		.go_btn {
			border-radius: 50rpx;
			font-size: 30rpx;
			color: #4c310c;
			padding: 20rpx 0;
			text-align: center;
			background-image: linear-gradient(to right, #fef0bc, #b98b51);
		}
	}
}
</style>
